/*
 * @Description: 酒店差标相关设置
 * @Version: 2.0
 * @Autor: 许国辉
 * @Date: 2022-12-04 11:18:12
 * @LastEditors: 许国辉
 * @LastEditTime: 2023-09-15 11:44:24
 */
import { HotelCityModel, HotelCityParamsModel } from './model/hotelCityModel';
import { defHttp } from '/@/utils/http/axios';
enum Api {
  getHotelCityByParams = '/travelStandardHotel/getHotelGeoByParams',
  updateHotelCity = '/travelStandardHotel/updateHotelCity',
}
export function getHotelCityByParams(params: HotelCityParamsModel) {
  return defHttp.post<Array<HotelCityModel>>({
    url: Api.getHotelCityByParams,
    params,
    headers: {
      ignoreCancelToken: true,
    },
  });
}

export function updateHotelCityModel(params: HotelCityModel) {
  return defHttp.post<number>({
    url: Api.updateHotelCity,
    params,
    headers: {
      ignoreCancelToken: true,
    },
  });
}
